$(document).on('click','.fachoose-map',function (){
    var lng=$(this).data('lng'),lat=$(this).data('lat'),address=$(this).data('address');
    parent.Fast.api.open("qingdongwms/customer/customer/map",'地理位置选择', {
        area: ['500px', '600px'],
        callback: function (data) {
            $('#' + lng).val(data.lng)
            $('#' + lat).val(data.lat)
            $('#' + address).val(data.address + data.address_detail)
            $('#' + address + '_text').val(data.address + data.address_detail)
        }
    });
}).on("click", ".r-select-customer", function(){
    var $this=$(this);
    top.Fast.api.open($(this).data("url") , __('Select'), {callback: function (data) {
            $this.html(data.name);
            $('[name="'+$this.data('name')+'"]').val(data.id);
        },area:["100%", "100%"]});
}).on("click", ".r-select-contacts", function(){
    var $this=$(this)
    top.Fast.api.open($(this).data("url") , __('Select'), {callback: function (data) {
            $this.html(data.name);
            $('[name="'+$this.data('name')+'"]').val(data.id);
        },area:["100%", "100%"]});
}).on("click", ".r-select-business", function(){
    var $this=$(this)
    top.Fast.api.open($(this).data("url") , __('Select'), {callback: function (data) {
            $this.html(data.name);
            $('[name="'+$this.data('name')+'"]').val(data.id);
        },area:["100%", "100%"]});
}).on("click", ".r-select-contract", function(){
    var $this=$(this)
    top.Fast.api.open($(this).data("url"), __('Select'), {callback: function (data) {
            $this.html(data.name);
            $('[name="'+$this.data('name')+'"]').val(data.id);
        },area:["100%", "100%"]});
});
alert('cajsids')